#!/bin/bash

dumpDir="./data/sql"
workingDir=$PWD
db="SugarBindDB"
file_name=$db

file_name_date=$file_name"_"`eval date +%y%m%d_%H%M%S`".sql"

cd $workingDir
echo "cd $workingDir"

cd $dumpDir
echo "cd $dumpDir"
echo $PWD

pg_dump $db > $file_name_date
echo "database $db dumped in $file_name_date file."
